#include "SceneNodeComponent.h"
#include "Scene/SceneNode.h"
#include "Scene/Scene.h"

RSceneNodeComponent::RSceneNodeComponent()
{

}

TSharedObjectPtr<RSceneNode> RSceneNodeComponent::GetNode()
{
    return TSharedObjectPtr<RSceneNode>(GetOwner());
}

TSharedObjectPtr<RScene> RSceneNodeComponent::GetScene()
{
    return GetNode()->GetScene();
}

SVec3 RSceneNodeComponent::GetWorldPosition() 
{
    return GetNode()->GetWorldPosition();
}

SQuat RSceneNodeComponent::GetWorldRotation() 
{
    return GetNode()->GetWorldRotation();
}

void RSceneNodeComponent::SetWorldPosition(const SVec3 &InPosition)
{
    GetNode()->SetWorldPosition(InPosition);
}

void RSceneNodeComponent::SetWorldRotation(const SQuat &InRotation)
{
    GetNode()->SetWorldRotation(InRotation);
}
